package ModelLayer;
import java.util.ArrayList;
import ModelLayer.*;
public class Customer
{
    
    private int customerId;
    private String name;
    private String company;
    private String city;
    private String address;
    private String postalCode;
    private String phoneNumber;
    private String email;
    private int customerDiscount;

    public Customer(int customerId, String name, String company, String city, String address, String postalCode,String phoneNumber, String email)
    {
       this.customerId = customerId;
       this.name = name;
       this.company = company;
       this.city = city;
       this.address = address;
       this.postalCode = postalCode;
       this.phoneNumber = phoneNumber;
       this.email = email;
       this.customerDiscount = 0;
       
    }

    public boolean setCustomerDiscount(int customerDiscount)
    {
        boolean discount = false;
        this.customerDiscount = customerDiscount;
        if( customerDiscount > 10)
        {
            discount = false;
            customerDiscount = 0;
        }
        else
        {
            this.customerDiscount = customerDiscount;
            discount = true;
        }
        return discount;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public void setCompany( String company)
    {
        this.company = company;
    }
    
    public void setCity(String city)
    {
        this.city = city;
    }
    
    public void setAddress(String address)
    {
        this.address = address;
    }
    
    public void setPostalCode(String postalCode)
    {
        this.postalCode = postalCode;
    }
    
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }
    
    public void setEmail(String email)
    {
        this.email = email;
    }
    
    public int getCustomerId()
    {
        return customerId;
    }
    
    public String getCustomerName()
    {
        return name;
    }
    
    public String getCompanyName()
    {
        return company;
    }
    
    public String getCity()
    {
        return city;
    }
    
    public String getAddress()
    {
        return address;
    }
    
    public String getPostalCode()
    {
        return postalCode;
    }
    
    public String getPhoneNumber()
    {
        return phoneNumber;
    }
    
    public String getEmail()
    {
        return email;
    }
    
    public long getCustomerDiscount()
    {
        return customerDiscount;
    }
}
